<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>新增角色</title>
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
</head>
<body class="bg-gray-100">
    <div class="min-h-screen">
        <header class="bg-white shadow">
            <div class="max-w-7xl mx-auto py-6 px-4">
                <div class="flex items-center">
                    <a href="./role_list.html" class="text-gray-500 hover:text-gray-700 mr-4">
                        <svg class="h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 19l-7-7m0 0l7-7m-7 7h18" />
                        </svg>
                    </a>
                    <h1 class="text-2xl font-bold text-gray-900">新增角色</h1>
                </div>
            </div>
        </header>

        <main class="max-w-7xl mx-auto py-6 sm:px-6 lg:px-8">
            <div class="bg-white shadow rounded-lg overflow-hidden">
                <div class="p-6">
                    <form>
                        <!-- 基本信息 -->
                        <div class="mb-8">
                            <h2 class="text-lg font-medium text-gray-900 mb-4">基本信息</h2>
                            <div class="grid grid-cols-2 gap-6">
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-2">角色名称</label>
                                    <input type="text" class="w-full border rounded-md px-4 py-2" placeholder="请输入角色名称">
                                </div>
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-2">角色标识</label>
                                    <input type="text" class="w-full border rounded-md px-4 py-2" placeholder="请输入角色标识，如：admin">
                                </div>
                                <div class="col-span-2">
                                    <label class="block text-sm font-medium text-gray-700 mb-2">角色描述</label>
                                    <textarea class="w-full border rounded-md px-4 py-2" rows="3" placeholder="请输入角色描述"></textarea>
                                </div>
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-2">状态</label>
                                    <div class="flex items-center space-x-4">
                                        <label class="inline-flex items-center">
                                            <input type="radio" name="status" value="1" class="form-radio text-blue-600" checked>
                                            <span class="ml-2">启用</span>
                                        </label>
                                        <label class="inline-flex items-center">
                                            <input type="radio" name="status" value="0" class="form-radio text-blue-600">
                                            <span class="ml-2">禁用</span>
                                        </label>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <!-- 权限配置 -->
                        <div class="mb-8">
                            <h2 class="text-lg font-medium text-gray-900 mb-4">权限配置</h2>
                            <div class="border rounded-md p-4">
                                <!-- 订单管理权限 -->
                                <div class="mb-4">
                                    <label class="inline-flex items-center">
                                        <input type="checkbox" class="form-checkbox text-blue-600">
                                        <span class="ml-2 font-medium">订单管理</span>
                                    </label>
                                    <div class="ml-6 mt-2 grid grid-cols-3 gap-4">
                                        <label class="inline-flex items-center">
                                            <input type="checkbox" class="form-checkbox text-blue-600">
                                            <span class="ml-2">查看订单</span>
                                        </label>
                                        <label class="inline-flex items-center">
                                            <input type="checkbox" class="form-checkbox text-blue-600">
                                            <span class="ml-2">处理订单</span>
                                        </label>
                                        <label class="inline-flex items-center">
                                            <input type="checkbox" class="form-checkbox text-blue-600">
                                            <span class="ml-2">导出订单</span>
                                        </label>
                                    </div>
                                </div>

                                <!-- 景区管理权限 -->
                                <div class="mb-4">
                                    <label class="inline-flex items-center">
                                        <input type="checkbox" class="form-checkbox text-blue-600">
                                        <span class="ml-2 font-medium">景区管理</span>
                                    </label>
                                    <div class="ml-6 mt-2 grid grid-cols-3 gap-4">
                                        <label class="inline-flex items-center">
                                            <input type="checkbox" class="form-checkbox text-blue-600">
                                            <span class="ml-2">查看景区</span>
                                        </label>
                                        <label class="inline-flex items-center">
                                            <input type="checkbox" class="form-checkbox text-blue-600">
                                            <span class="ml-2">编辑景区</span>
                                        </label>
                                        <label class="inline-flex items-center">
                                            <input type="checkbox" class="form-checkbox text-blue-600">
                                            <span class="ml-2">删除景区</span>
                                        </label>
                                    </div>
                                </div>

                                <!-- 分销管理权限 -->
                                <div class="mb-4">
                                    <label class="inline-flex items-center">
                                        <input type="checkbox" class="form-checkbox text-blue-600">
                                        <span class="ml-2 font-medium">分销管理</span>
                                    </label>
                                    <div class="ml-6 mt-2 grid grid-cols-3 gap-4">
                                        <label class="inline-flex items-center">
                                            <input type="checkbox" class="form-checkbox text-blue-600">
                                            <span class="ml-2">查看分销员</span>
                                        </label>
                                        <label class="inline-flex items-center">
                                            <input type="checkbox" class="form-checkbox text-blue-600">
                                            <span class="ml-2">审核分销员</span>
                                        </label>
                                        <label class="inline-flex items-center">
                                            <input type="checkbox" class="form-checkbox text-blue-600">
                                            <span class="ml-2">佣金设置</span>
                                        </label>
                                    </div>
                                </div>

                                <!-- 核销管理权限 -->
                                <div class="mb-4">
                                    <label class="inline-flex items-center">
                                        <input type="checkbox" class="form-checkbox text-blue-600">
                                        <span class="ml-2 font-medium">核销管理</span>
                                    </label>
                                    <div class="ml-6 mt-2 grid grid-cols-3 gap-4">
                                        <label class="inline-flex items-center">
                                            <input type="checkbox" class="form-checkbox text-blue-600">
                                            <span class="ml-2">查看成交员</span>
                                        </label>
                                        <label class="inline-flex items-center">
                                            <input type="checkbox" class="form-checkbox text-blue-600">
                                            <span class="ml-2">添加成交员</span>
                                        </label>
                                        <label class="inline-flex items-center">
                                            <input type="checkbox" class="form-checkbox text-blue-600">
                                            <span class="ml-2">核销记录</span>
                                        </label>
                                    </div>
                                </div>

                                <!-- 内容管理权限 -->
                                <div>
                                    <label class="inline-flex items-center">
                                        <input type="checkbox" class="form-checkbox text-blue-600">
                                        <span class="ml-2 font-medium">内容管理</span>
                                    </label>
                                    <div class="ml-6 mt-2 grid grid-cols-3 gap-4">
                                        <label class="inline-flex items-center">
                                            <input type="checkbox" class="form-checkbox text-blue-600">
                                            <span class="ml-2">查看内容</span>
                                        </label>
                                        <label class="inline-flex items-center">
                                            <input type="checkbox" class="form-checkbox text-blue-600">
                                            <span class="ml-2">编辑内容</span>
                                        </label>
                                        <label class="inline-flex items-center">
                                            <input type="checkbox" class="form-checkbox text-blue-600">
                                            <span class="ml-2">删除内容</span>
                                        </label>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <!-- 操作按钮 -->
                        <div class="flex justify-end space-x-4">
                            <button type="button" class="px-6 py-2 border rounded-md" onclick="window.location.href='./role_list.html'">取消</button>
                            <button type="submit" class="px-6 py-2 bg-blue-600 text-white rounded-md">保存</button>
                        </div>
                    </form>
                </div>
            </div>
        </main>
    </div>
</body>
</html>